﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.ComponentModel;
using ProgramaPuenteGoogle.App.BO;
using ProgramaPuenteGoogle.App.BO.Collections;
using ProgramaPuenteGoogle.App.DAL;

namespace ProgramaPuenteGoogle.App.BLL
{
    [DataObjectAttribute()]
    public class BeneficioManager
    {

        [DataObjectMethod(DataObjectMethodType.Select, false)]
        public static BeneficioList GetList()
        {
            return BeneficioBD.GetLista();
        }
   
            [DataObjectMethod(DataObjectMethodType.Update, true)]
            public static int Actualizar(Beneficio myBeneficio)
            {
                return BeneficioBD.Actualizar(myBeneficio);
            }

            [DataObjectMethod(DataObjectMethodType.Insert, true)]
            public static int Insertar(Beneficio myBeneficio)
            {
                return BeneficioBD.Insertar(myBeneficio);
            }
        

            [DataObjectMethod(DataObjectMethodType.Delete, true)]
            public static int Eliminar(Beneficio myBeneficio)
            {
                return BeneficioBD.Actualizar(myBeneficio);
            }
        
            [DataObjectMethod(DataObjectMethodType.Select, true)]
            public static Beneficio BuscarBeneficio(int idBeneficio)
            {
                return BeneficioBD.BuscarBeneficio(idBeneficio);
            }
    }
}
